﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace PowerLife
{
    class Player
    {

        public Texture2D PlayerTexture;

        public Vector2 Position;

        public bool Active;

        public int Health;

        public int Width;

        public int Height;


        public void Initialize(Texture2D texture, Vector2 position)
        {
            PlayerTexture = texture;

            Position = position;

            Active = true;

            Health = 50;
        }

        public void Update()
        {
        }

        public void Draw(SpriteBatch spriteBatch, ViewPort camera)
        {
            spriteBatch.Draw(PlayerTexture, Position- new Vector2(camera.xloc-320, camera.yloc-240), null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
        }

    }
}
